<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<tiles:insertDefinition name="defaultTemplate">
	<tiles:putAttribute name="body">

	<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/editUser.js"></script>
	<script type="text/javascript">$(document).ready(function() {dataTable('${oLanguage}'); alertMessage('${status}','${message}');});</script>

		<div class="body">
			
				<form method="GET" name="userLoginForm" id="userLoginForm">
				<div id="message"></div>
					<div class="row" style="margin-left: 28%;margin-top: 2%;">
						<div class="col-sm-2" style="margin-right: 1%;">
							<div class="row form-group">
								<label for="inputUserID"><spring:message code="field.UserId" /></label>
								<input type="text" class="form-control input-sm" id="vaUserId" name="vaUserId" placeholder="<spring:message code="field.UserId" />"  data-required="true">
							</div>
						</div>
						<div class="col-sm-4">
							<div class="row form-group">
								<label for="inputName"><spring:message code="field.Name" /></label>
								<input type="text" class="form-control input-sm" id="vaName" name="vaName" placeholder="<spring:message code="field.Name" />" >
							</div>
						</div>
						<div class="col-sm-3"  style="top:22px;>
							<div class="row form-group"">
								<label for="#">&nbsp;</label>
								<button type="button" class="btn btn-success btn-sm" onclick="searchUser('${oLanguage}')"><i class="fa search"></i>&nbsp;<spring:message code="dataTable.sSearch" /></button>
								<label for="#">&nbsp;</label>
								<button type="reset" class="btn btn-default btn-sm"><i class='fa fa-refresh'></i>&nbsp;<spring:message code="btn.clear" /></button>
							</div>
						</div>
						
				</form>	
				
			</div>

		

				<div class="panel-heading">
					<h4><span class="text-success">Edit </span> <span style="color:#ccc; text-shadow:0 1px #fff"> User</span></h4>
				</div>
				
					<table align="center" style="width: 95%;">
						<tr>
							<td>
							<table id="userdata" class="table table-striped">
								<thead>
									<tr>
										<th><spring:message
										code="field.No" /></th>
										<th><spring:message
										code="field.UserId" /></th>
										<th><spring:message
										code="field.Name" /></th>
										<th><spring:message
										code="field.Position" /></th>
										<th><spring:message
										code="field.Status" /></th>
										<th><spring:message
										code="field.Manage" /></th>
									</tr>
								</thead>
								
							</table>
							</td>
						</tr>
					</table>
		</div>
	</tiles:putAttribute>
</tiles:insertDefinition>